<?php

class m130706_153439_insert_settings_recurrencies_for_nganluong extends CDbMigration
{
	public function up()
	{
		$sql = "
			INSERT INTO `settings` (`id`, `type`, `name`, `value`) 
			VALUES 
			(NULL, 'deposit', 'nl', '15000');
			INSERT INTO `currencies` (`id`, `name`, `code`, `rate`) 
			VALUES 
			(NULL, 'nl', 'VND', '10');
		";
		$this->execute($sql);
		return true;
	}

	public function down()
	{
		echo "m130706_153439_insert_settings_recurrencies_for_nganluong does not support migration down.\n";
		return false;
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}